package com.baizhi.cmfzmanager.service;

import com.baizhi.cmfzmanager.entity.Article;
import com.baizhi.cmfzmanager.entity.ArticleDTO;

import java.util.List;
import java.util.Map;

public interface ArticleService {

    public Map getArticles(int page, int rows);
    Map getArticlesByGuruId(int page,int rows,int guruId);
    void insert(Article article);
    void delete(int id);
    void update(Article article);

    List<ArticleDTO> getTwoArticle();

    List<ArticleDTO> getAllArticle();

    List<ArticleDTO> getArticleByGuruId(Integer guruId);
}
